package com.lxd.common.exception;

import com.lxd.common.enums.ExceptionEnums;
import lombok.Getter;

/**
 * @Author Dongdong
 * @注释 策略模块处理异常类
 */
@Getter
public class StrategyException extends RuntimeException{
    private Integer code;

    public StrategyException(String msg,Integer code){
        super(msg);
        this.code=code;
    }
    public StrategyException( ExceptionEnums enums) {
        super(enums.getMsg());
        this.code = enums.getCode();
    }
}
